package com.bkfm.framework.sys.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.yak.core.service.BaseService;

import com.bkfm.framework.sys.api.service.IBkfmOrgService;
import com.bkfm.framework.sys.api.store.IBkfmOrgStore;
import com.bkfm.framework.sys.entity.BkfmOrgs;
import com.bkfm.framework.sys.entity.BkfmUserOrgs;
import com.bkfm.framework.sys.entity.BkfmUsers;

@Service
@Transactional
public class BkfmOrgService extends BaseService<BkfmOrgs> implements IBkfmOrgService{

	@Resource
	private IBkfmOrgStore orgStore;
	
	/**
	 * 查询用户所属角色
	 * @param bkfmUser
	 * @return
	 * @throws Exception
	 */
	public List<BkfmUserOrgs> queryUserOrgList(BkfmUsers bkfmUser)throws Exception{
		return orgStore.selectUserOrgList(bkfmUser);
	}
}
